home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 038a / qbatb503.zip / README.TBX < prev    next >
Text File  |  1991-08-12  |  9KB  |  183 lines

  1.  
  2.  
  3.  
  4.              Assembly-Language Toolbox for QuickBASIC
  5.              ────────────────────────────────────────
  6.  
  7.                        By Christy Gemmell
  8.  
  9.  
  10. The fifth edition of the Assembly-Language Toolbox has many new features.
  11. EMS support has been added with a full set of routines for reading and
  12. writing to LIM 3.2/4.0 Expanded Memory. Other routines enable you to
  13. control the DOS print spooler and, thanks to Neil Carter, it now has a
  14. complete set of Mouse functions.
  15.  
  16. High-resolution graphics, a previously neglected area in the Toolbox, have
  17. at last been tackled and this release provides facilities for scrolling,
  18. panning, and controlling the intensity of graphics displays. The routines
  19. for loading and saving high-resolution screens to disk files have been
  20. rewritten in pure assembly-language and are, consequently, much smaller
  21. and faster. In addition I have added routines for drawing and scaling
  22. high-resolution text in any combination of colours that your video card is
  23. capable of displaying. This includes computers fitted with CGA, MCGA, EGA
  24. and VGA adaptors. Hercules graphics cards are not, as yet, supported.
  25.  
  26. As in previous releases, two versions of the Toolbox library are included.
  27. The first, TOOLBOX.LIB, is intended for linking with stand-alone programs
  28. which are run from the DOS command line. To do this you must first compile
  29. your program using BC's /O switch, eg:
  30.  
  31.     BC /O YOURPROG.BAS;
  32.  
  33. where YOURPROG.BAS is, of course, the name of your program. 
  34.  
  35. The resulting object file should then be linked to the library using the
  36. version of LINK.EXE which came with your QuickBASIC compiler, viz:
  37.  
  38.     LINK YOURPROG,,,TOOLBOX.LIB;
  39.  
  40. This will produce an executable program, YOURPROG.EXE, which can be run
  41. completely stand-alone, without the need for the QuickBASIC support module
  42. BRUN45.EXE to be present at runtime. It can, therefore, be distributed
  43. freely without the need for royalty payments.
  44.  
  45.  
  46. TOOLBOX.QLB, the second version of the library, is used for developing
  47. programs in the QuickBASIC environment. To load it, use the following
  48. command when starting up QuickBASIC:
  49.  
  50.     QB YOURPROG /L TOOLBOX.QLB
  51.  
  52. Thereafter your program can call any of the Toolbox functions and
  53. procedures, provided that it includes the appropriate DECLARE statements
  54. at the beginning of its' code.
  55.  
  56. DECLARE statements are prototype descriptions of the SUB programs and
  57. FUNCTION procedures which your program will call. The QuickBASIC compiler
  58. uses them to determine the number of arguments that need to be passed and
  59. how the routines are to be called. Once declared, a library routine needs
  60. only to be named for it to be executed and becomes, in effect, an
  61. extension to the QuickBASIC language.  To use the Toolbox FASTPRINT
  62. routine, for example, add the following lines to your program:
  63.  
  64. DECLARE SUB FastPrint (BYVAL Row%, BYVAL Col%, Message$, BYVAL Attribute%)
  65.  
  66. FastPrint 25, 34, "Hello World!", 48
  67.  
  68. This will print 'Hello World!' at the centre of the bottom screen row,
  69. using black characters on cyan background (assuming that you have a colour
  70. monitor).  Notice that you don't even have to use a CALL statement to
  71. invoke FastPrint and that the parentheses around the argument list are not
  72. required.
  73.  
  74. DECLARE statements have another use when you are building stand-alone
  75. programs with LINK.EXE. They tell the linker to attach only the modules
  76. containing the declared library routines to your program, and no others.
  77. This helps keep your .EXE files smaller by preventing them from being
  78. burdened with unneccessary code. The file TOOLBOX.DEF contains a full set
  79. of DECLARE statements for all the library routines on this disk. Just
  80. paste the ones you need into your current program.
  81.  
  82. If you have been using a previous version of the Toolbox, please note that
  83. many of the DECLARE statements for previously existing routines have been
  84. changed. In particular, a number of arguments which were previously passed
  85. by reference are now passed BY VALue. Others have been given additional
  86. parameters. Before you link existing code to the new version of
  87. TOOLBOX.LIB, you should check with TOOLBOX.DEF that your DECLARE
  88. statements are still valid.
  89.  
  90. The \HELP subdirectory contains a number of ASCII topic files which are
  91. used by DEMON.EXE, the Toolbox demonstration program, to provide context-
  92. sensitive help. If you are copying the Toolbox package to your hard disk,
  93. be aware that not all of these are visible to normal directory listings
  94. (see the HELPMATE documentation for more information). You may also need
  95. to set up a DOS environment variable to point to the subdirectory you
  96. transfer the topic files to, otherwise DEMON may not find them, eg:
  97.  
  98.     SET HELP=C:\QB45\HELPTEXT
  99.  
  100. With this release I have also provided the source code for DEMON as a
  101. guide to using Toolbox routines in your own programs. Feel free to copy
  102. or modify any part of it as you see fit.
  103.  
  104.  
  105. TOOLBOX.HLP is an on-line help database which includes full descriptions
  106. of all Assembly and Mixed-Language functions in the Toolbox. It is fully
  107. compatible with QH.EXE, the QuickHelp utility program supplied with all
  108. recent versions of Microsoft languages (including the BASIC 7, C 6 and
  109. MASM 6 Professional Development Systems). Alternatively you can append it
  110. to the Microsoft Advisor help database supplied with your compiler and
  111. access it directly from within the QuickBASIC or Extended QuickBASIC
  112. environments. Do this by typing, from the DOS command line :
  113.  
  114.     COPY BAS7QCK.HLP /B + TOOLBOX.HLP /B     (for BASIC 7 PDS)
  115.  
  116.     COPY QB45QCK.HLP /B + TOOLBOX.HLP /B     (for QuickBASIC 4.5)
  117.     
  118. (Back up your original QuickHelp file before doing this, just in case
  119. something goes wrong.)
  120.  
  121. Thereafter you will be able to obtain information on any Toolbox routine
  122. by placing your cursor on any reference to it in your source code and
  123. then pressing <F1> or clicking the right mouse button, just as you would
  124. with any other QuickBASIC keyword. You will also be able to paste examples
  125. and DECLARE statements from the Toolbox Advisor, directly into your
  126. program.
  127.  
  128. This ShareWare version of the Assembly-Language Toolbox for QuickBASIC is
  129. provided, free of charge, to any QuickBASIC programmer who can find a use
  130. for it. You are encouraged to copy it, upload it to Electronic Bulletin
  131. Boards or pass it on to friends, provided only that you make no charge for
  132. doing so and that all the files on the disk are preserved intact. You may
  133. freely include Toolbox routines in your own programs, both for private use
  134. and for commercial distribution, without payment to me.
  135.  
  136. If you intend to use the Toolbox on a regular basis, however, I would ask
  137. you to register your copy with me, the author. For a modest fee, this will
  138. bring you a copy of the Professional version of the Toolbox, complete with
  139. all the source code, object modules for building your own custom libraries
  140. and many additional features. Registration also entitles you to a free
  141. upgrade to Release 6 of the Toolbox, when it becomes available, and to
  142. subsequent releases at a greatly reduced price. Full Hotline support is
  143. also included, at no extra charge. 
  144.  
  145. Christy Gemmell                                              February 1991
  146.  
  147.                 ────────────────────────────────────────────
  148.  
  149.                     For more information contact:
  150.  
  151. James Kreyling      CPC Consulting Company, 1217 Crescent Drive,
  152.                     Smithfield, Va. 23430, U.S.A.
  153.  
  154.           Tel:      (804)-357-7635 (Voice)   
  155.                     (804)-357-0357 (Club PC BBS)
  156.                     (804)-357-7635 (FAX) 
  157.  
  158. Neil Carter         ARDEN SOFTWARE, 115/117 Barkby Road, 
  159.                     Leicester LE4 7LG, England
  160.  
  161.           Tel:      (044)-0533-761524    Fax:    (044)-0533-740249
  162.  
  163.  
  164. ┌──────────────────────────── F L A S H ! ───────────────────────────────┐
  165. │                                                                        │
  166. │    ASSEMBLY-LANGUAGE TOOLBOX FOR BASIC 7.1 PROFESSIONAL DEVELOPMENT    │
  167. │                          SYSTEM NOW AVAILABLE                          │
  168. │                                                                        │
  169. └────────────────────────────────────────────────────────────────────────┘
  170.  
  171. The Assembly-Language Toolbox for QuickBASIC is used by thousands of
  172. programmers in Great Britain, Europe, the USA and Canada, Australasia and
  173. Japan, to build fast and powerful QuickBASIC programs. It has been shown
  174. at COMDEX and was featured in the November 1990 issue of BYTE magazine.
  175.  
  176. Christy Gemmell, the author of this package, is also major author of the
  177. definitive textbook on QuickBASIC programming, the QuickBASIC BIBLE, which
  178. is published by Microsoft Press, in association with the Waite Group, at
  179. £24.95 ($27.95 US) ISBN 1-55615-262-0. Its thousand pages are packed with
  180. information, tips and example programs which you wont find anywhere else.
  181. Look out for it in your local bookstore.
  182.  
  183.